<?php
namespace Module\Model;

use Zend\Db\TableGateway\TableGateway;

class ControllersTable {
	
	protected $tableGateway;
	
	public function getTableGateway() {
		return $this->tableGateway;
	}

	public function setTableGateway($tableGateway) {
		$this->tableGateway = $tableGateway;
	}

	public function __construct(TableGateway $tableGateway)
	{
		$this->tableGateway = $tableGateway;
	}
        
        public function getById($mid)
        {
            $resultSet = $this->tableGateway->select(array('mid' => $mid));
            return $resultSet->toArray();
        }
	
}

?>